$('html').append('<style>.websign {\
display: inline-block;\
margin: 0;\
padding: 0;\
}\
input.SmallButtonA {\
    width: 50px;\
    height: 21px;\
    color: #36434E;\
    background: url(/img/form/btn_a.png) no-repeat;\
    border: 0px;\
    cursor: pointer;\
    -webkit-appearance: button;\
    font-size: 12px;\
    min-height: 20px;\
    line-height: 20px;\
    max-width: 100%;\
}input.SmallButtonA:hover {\
background-position: 0 -21px;\
}</style>');
isIE = function()
{
	return !!(window.ActiveXObject || "ActiveXObject" in window);
}

var agent = navigator.userAgent.toLowerCase();
function loadwebsign(){
    if (isIE()) {
        var s = ""
        s += "<object id=DWebSignSeal classid='CLSID:77709A87-71F9-41AE-904F-886976F99E3E' style='position:absolute;width:0px;height:0px;left:0px;top:0px;' codebase='/lib/webSign/WebSign.dll#version=4,5,1,4'>"
        s += "</object>";
    }else{
        var s = ""
        s += "<object id=DWebSignSeal classid='CLSID:77709A87-71F9-41AE-904F-886976F99E3E' style='position:absolute;width:0px;height:0px;left:0px;top:0px;' TYPE='application/x-itst-activex' event_NotifyCtrlReady='NotifyCtrlReady' progid='' clsid='{77709A87-71F9-41AE-904F-886976F99E3E}' codebase='/lib/webSign/WebSign.dll#Version=4,5,1,4'>"
        s += "</object>";
    }
    $('body').append(s)
}
